package com.dtp.extension.limiter.redis.em;

import lombok.Getter;

/**
 * RateLimitEnum related
 *
 * @author yanhom
 * @since 1.0.8
 **/
@Getter
public enum RateLimitEnum {
    SLIDING_WINDOW("sw_rt", "sliding_window_rate_limiter.lua"),; // 滑动窗口脚本

    private final String keyName; // 主键名称
    private final String scriptName; // 脚本文件名称

    RateLimitEnum(final String keyName, final String scriptName) {
        this.keyName = keyName;
        this.scriptName = scriptName;
    }
}
